using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using C1.Win.C1TrueDBGrid;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSComProcurement.Purchase.BO;
using PCSUtils.Log;
using PCSUtils.Utils;

namespace PCSProcurement.Purchase
{
	/// <summary>
	/// Summary description for CloseOpenPurchaseOrder.
	/// </summary>
	public class CloseOpenPurchaseOrder : System.Windows.Forms.Form
	{
		private C1.Win.C1List.C1Combo cboCCN;
		private System.Windows.Forms.Button btnSearchMasLoc;
		private System.Windows.Forms.TextBox txtMasLoc;
		private System.Windows.Forms.Label lblMasLoc;
		private System.Windows.Forms.Button btnSearch;
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Button btnHelp;
		private System.Windows.Forms.Label lblCCN;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		const string THIS = "PCSProcurement.Purchase.CloseOpenPurchaseOrder";
		UtilsBO boUtil = new UtilsBO();
		private DataTable dtbGridLayOut;
		private DataSet dstGridData;
		//For clearing datagrid purpose
		DataSet dstData = new DataSet();
		private const string SELECT = "Sel";
		private const string PURCHASEORDERNO = "PurchaseOrderNo";
		private const string VENDORCODE = "VendorCode";
		private const string VENDORNAME = "VendorName";
		private const string UM = "UM";
		private bool blnStateOfCheck = false;
		private bool blnPOClose = false;
		private DateTime dtmSpecialDate = new DateTime(1, 1, 1);
		private ArrayList arrSelectedLines;
		private C1.Win.C1TrueDBGrid.C1TrueDBGrid dgrdData;
		private C1.Win.C1Input.C1DateEdit dtmToScheduleDateTime;
		private C1.Win.C1Input.C1DateEdit dtmFromScheduleDateTime;
		private System.Windows.Forms.Button btnClosePO;
		private System.Windows.Forms.CheckBox chkSelectAll;
		private System.Windows.Forms.Label lblFromScheduleDateTime;
		private System.Windows.Forms.TextBox txtPONo;
		private System.Windows.Forms.Label lblPONo;
		private System.Windows.Forms.Label lblToScheduleDateTime;
		private System.Windows.Forms.ComboBox cboCloseOrOpen;
		private System.Windows.Forms.Label lblCloseOrOpen;
		private System.Windows.Forms.Label lblClose;
		private System.Windows.Forms.Label lblOpen;
		private System.Windows.Forms.Button btnSearchPONo;
		private System.ComponentModel.Container components = null;

		public CloseOpenPurchaseOrder()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CloseOpenPurchaseOrder));
			this.cboCCN = new C1.Win.C1List.C1Combo();
			this.dtmToScheduleDateTime = new C1.Win.C1Input.C1DateEdit();
			this.dtmFromScheduleDateTime = new C1.Win.C1Input.C1DateEdit();
			this.btnSearchMasLoc = new System.Windows.Forms.Button();
			this.txtMasLoc = new System.Windows.Forms.TextBox();
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.lblMasLoc = new System.Windows.Forms.Label();
			this.btnSearch = new System.Windows.Forms.Button();
			this.btnClosePO = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.lblCCN = new System.Windows.Forms.Label();
			this.chkSelectAll = new System.Windows.Forms.CheckBox();
			this.lblFromScheduleDateTime = new System.Windows.Forms.Label();
			this.btnSearchPONo = new System.Windows.Forms.Button();
			this.txtPONo = new System.Windows.Forms.TextBox();
			this.lblPONo = new System.Windows.Forms.Label();
			this.lblToScheduleDateTime = new System.Windows.Forms.Label();
			this.cboCloseOrOpen = new System.Windows.Forms.ComboBox();
			this.lblCloseOrOpen = new System.Windows.Forms.Label();
			this.lblClose = new System.Windows.Forms.Label();
			this.lblOpen = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToScheduleDateTime)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromScheduleDateTime)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			this.SuspendLayout();
			// 
			// cboCCN
			// 
			this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
			this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
			this.cboCCN.AddItemSeparator = ';';
			this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
			this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
			this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
			this.cboCCN.Caption = "";
			this.cboCCN.CaptionHeight = 17;
			this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
			this.cboCCN.ColumnCaptionHeight = 17;
			this.cboCCN.ColumnFooterHeight = 17;
			this.cboCCN.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList;
			this.cboCCN.ContentHeight = 15;
			this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
			this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
			this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
			this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
			this.cboCCN.EditorHeight = 15;
			this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
			this.cboCCN.FlatStyle = C1.Win.C1List.FlatModeEnum.System;
			this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
			this.cboCCN.GapHeight = 2;
			this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
			this.cboCCN.ItemHeight = 15;
			this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
			this.cboCCN.MatchEntryTimeout = ((long)(2000));
			this.cboCCN.MaxDropDownItems = ((short)(5));
			this.cboCCN.MaxLength = 32767;
			this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
			this.cboCCN.Name = "cboCCN";
			this.cboCCN.PartialRightColumn = false;
			this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
			this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
			this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
			this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
			this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
			this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
			this.cboCCN.Text = resources.GetString("cboCCN.Text");
			this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
			this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
				"ta>Group{BackColor:ControlDark;Border:None,,0, 0, 0, 0;AlignVert:Center;}Style2{" +
				"}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
				"lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
				"ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{}HighlightRow{" +
				"ForeColor:HighlightText;BackColor:Highlight;}Style9{AlignHorz:Near;}OddRow{}Reco" +
				"rdSelector{AlignImage:Center;}Heading{Wrap:True;AlignVert:Center;Border:Raised,," +
				"1, 1, 1, 1;ForeColor:ControlText;BackColor:Control;}Style8{}Style10{}Style11{}St" +
				"yle1{}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowColSelect=\"False\" " +
				"Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFooterHeight=\"17\" Vert" +
				"icalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0, 118, 158</Client" +
				"Rect><VScrollBar><Width>17</Width></VScrollBar><HScrollBar><Height>17</Height></" +
				"HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRowStyle parent=\"Eve" +
				"nRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" /><GroupStyle paren" +
				"t=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Style2\" /><HighLight" +
				"RowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle parent=\"Inactive\" me" +
				"=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordSelectorStyle pare" +
				"nt=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selected\" me=\"Style5\" " +
				"/><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxView></Splits><Nam" +
				"edStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" me=\"Heading\" /><S" +
				"tyle parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=\"Caption\" /><Styl" +
				"e parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"Selected\" /><Style" +
				" parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=\"EvenRow\" /><Styl" +
				"e parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"RecordSelector\" /><S" +
				"tyle parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1</vertSplits><horz" +
				"Splits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWidth>17</DefaultRec" +
				"SelWidth></Blob>";
			// 
			// dtmToScheduleDateTime
			// 
			this.dtmToScheduleDateTime.AcceptsEscape = ((bool)(resources.GetObject("dtmToScheduleDateTime.AcceptsEscape")));
			this.dtmToScheduleDateTime.AccessibleDescription = resources.GetString("dtmToScheduleDateTime.AccessibleDescription");
			this.dtmToScheduleDateTime.AccessibleName = resources.GetString("dtmToScheduleDateTime.AccessibleName");
			this.dtmToScheduleDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToScheduleDateTime.Anchor")));
			this.dtmToScheduleDateTime.AutoSize = ((bool)(resources.GetObject("dtmToScheduleDateTime.AutoSize")));
			this.dtmToScheduleDateTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToScheduleDateTime.BackgroundImage")));
			this.dtmToScheduleDateTime.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToScheduleDateTime.BorderStyle")));
			// 
			// dtmToScheduleDateTime.Calendar
			// 
			this.dtmToScheduleDateTime.Calendar.AccessibleDescription = resources.GetString("dtmToScheduleDateTime.Calendar.AccessibleDescription");
			this.dtmToScheduleDateTime.Calendar.AccessibleName = resources.GetString("dtmToScheduleDateTime.Calendar.AccessibleName");
			this.dtmToScheduleDateTime.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToScheduleDateTime.Calendar.AnnuallyBoldedDates")));
			this.dtmToScheduleDateTime.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToScheduleDateTime.Calendar.BackgroundImage")));
			this.dtmToScheduleDateTime.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToScheduleDateTime.Calendar.BoldedDates")));
			this.dtmToScheduleDateTime.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToScheduleDateTime.Calendar.CalendarDimensions")));
			this.dtmToScheduleDateTime.Calendar.Enabled = ((bool)(resources.GetObject("dtmToScheduleDateTime.Calendar.Enabled")));
			this.dtmToScheduleDateTime.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToScheduleDateTime.Calendar.FirstDayOfWeek")));
			this.dtmToScheduleDateTime.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToScheduleDateTime.Calendar.Font")));
			this.dtmToScheduleDateTime.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToScheduleDateTime.Calendar.ImeMode")));
			this.dtmToScheduleDateTime.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToScheduleDateTime.Calendar.MonthlyBoldedDates")));
			this.dtmToScheduleDateTime.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToScheduleDateTime.Calendar.RightToLeft")));
			this.dtmToScheduleDateTime.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToScheduleDateTime.Calendar.ShowClearButton")));
			this.dtmToScheduleDateTime.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToScheduleDateTime.Calendar.ShowTodayButton")));
			this.dtmToScheduleDateTime.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToScheduleDateTime.Calendar.ShowWeekNumbers")));
			this.dtmToScheduleDateTime.CaseSensitive = ((bool)(resources.GetObject("dtmToScheduleDateTime.CaseSensitive")));
			this.dtmToScheduleDateTime.Culture = ((int)(resources.GetObject("dtmToScheduleDateTime.Culture")));
			this.dtmToScheduleDateTime.CurrentTimeZone = ((bool)(resources.GetObject("dtmToScheduleDateTime.CurrentTimeZone")));
			this.dtmToScheduleDateTime.CustomFormat = resources.GetString("dtmToScheduleDateTime.CustomFormat");
			this.dtmToScheduleDateTime.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToScheduleDateTime.DaylightTimeAdjustment")));
			this.dtmToScheduleDateTime.DisplayFormat.CustomFormat = resources.GetString("dtmToScheduleDateTime.DisplayFormat.CustomFormat");
			this.dtmToScheduleDateTime.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToScheduleDateTime.DisplayFormat.FormatType")));
			this.dtmToScheduleDateTime.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToScheduleDateTime.DisplayFormat.Inherit")));
			this.dtmToScheduleDateTime.DisplayFormat.NullText = resources.GetString("dtmToScheduleDateTime.DisplayFormat.NullText");
			this.dtmToScheduleDateTime.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToScheduleDateTime.DisplayFormat.TrimEnd")));
			this.dtmToScheduleDateTime.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToScheduleDateTime.DisplayFormat.TrimStart")));
			this.dtmToScheduleDateTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToScheduleDateTime.Dock")));
			this.dtmToScheduleDateTime.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToScheduleDateTime.DropDownFormAlign")));
			this.dtmToScheduleDateTime.EditFormat.CustomFormat = resources.GetString("dtmToScheduleDateTime.EditFormat.CustomFormat");
			this.dtmToScheduleDateTime.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToScheduleDateTime.EditFormat.FormatType")));
			this.dtmToScheduleDateTime.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToScheduleDateTime.EditFormat.Inherit")));
			this.dtmToScheduleDateTime.EditFormat.NullText = resources.GetString("dtmToScheduleDateTime.EditFormat.NullText");
			this.dtmToScheduleDateTime.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToScheduleDateTime.EditFormat.TrimEnd")));
			this.dtmToScheduleDateTime.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToScheduleDateTime.EditFormat.TrimStart")));
			this.dtmToScheduleDateTime.EditMask = resources.GetString("dtmToScheduleDateTime.EditMask");
			this.dtmToScheduleDateTime.EmptyAsNull = ((bool)(resources.GetObject("dtmToScheduleDateTime.EmptyAsNull")));
			this.dtmToScheduleDateTime.Enabled = ((bool)(resources.GetObject("dtmToScheduleDateTime.Enabled")));
			this.dtmToScheduleDateTime.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToScheduleDateTime.ErrorInfo.BeepOnError")));
			this.dtmToScheduleDateTime.ErrorInfo.ErrorMessage = resources.GetString("dtmToScheduleDateTime.ErrorInfo.ErrorMessage");
			this.dtmToScheduleDateTime.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToScheduleDateTime.ErrorInfo.ErrorMessageCaption");
			this.dtmToScheduleDateTime.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToScheduleDateTime.ErrorInfo.ShowErrorMessage")));
			this.dtmToScheduleDateTime.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToScheduleDateTime.ErrorInfo.ValueOnError")));
			this.dtmToScheduleDateTime.Font = ((System.Drawing.Font)(resources.GetObject("dtmToScheduleDateTime.Font")));
			this.dtmToScheduleDateTime.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToScheduleDateTime.FormatType")));
			this.dtmToScheduleDateTime.GapHeight = ((int)(resources.GetObject("dtmToScheduleDateTime.GapHeight")));
			this.dtmToScheduleDateTime.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToScheduleDateTime.GMTOffset")));
			this.dtmToScheduleDateTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToScheduleDateTime.ImeMode")));
			this.dtmToScheduleDateTime.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToScheduleDateTime.InitialSelection")));
			this.dtmToScheduleDateTime.Location = ((System.Drawing.Point)(resources.GetObject("dtmToScheduleDateTime.Location")));
			this.dtmToScheduleDateTime.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.AutoTabWhenFilled")));
			this.dtmToScheduleDateTime.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.CaseSensitive")));
			this.dtmToScheduleDateTime.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.CopyWithLiterals")));
			this.dtmToScheduleDateTime.MaskInfo.EditMask = resources.GetString("dtmToScheduleDateTime.MaskInfo.EditMask");
			this.dtmToScheduleDateTime.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.EmptyAsNull")));
			this.dtmToScheduleDateTime.MaskInfo.ErrorMessage = resources.GetString("dtmToScheduleDateTime.MaskInfo.ErrorMessage");
			this.dtmToScheduleDateTime.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.Inherit")));
			this.dtmToScheduleDateTime.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.PromptChar")));
			this.dtmToScheduleDateTime.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.ShowLiterals")));
			this.dtmToScheduleDateTime.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToScheduleDateTime.MaskInfo.StoredEmptyChar")));
			this.dtmToScheduleDateTime.MaxLength = ((int)(resources.GetObject("dtmToScheduleDateTime.MaxLength")));
			this.dtmToScheduleDateTime.Name = "dtmToScheduleDateTime";
			this.dtmToScheduleDateTime.NullText = resources.GetString("dtmToScheduleDateTime.NullText");
			this.dtmToScheduleDateTime.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.CaseSensitive")));
			this.dtmToScheduleDateTime.ParseInfo.CustomFormat = resources.GetString("dtmToScheduleDateTime.ParseInfo.CustomFormat");
			this.dtmToScheduleDateTime.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.DateTimeStyle")));
			this.dtmToScheduleDateTime.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.EmptyAsNull")));
			this.dtmToScheduleDateTime.ParseInfo.ErrorMessage = resources.GetString("dtmToScheduleDateTime.ParseInfo.ErrorMessage");
			this.dtmToScheduleDateTime.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.FormatType")));
			this.dtmToScheduleDateTime.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.Inherit")));
			this.dtmToScheduleDateTime.ParseInfo.NullText = resources.GetString("dtmToScheduleDateTime.ParseInfo.NullText");
			this.dtmToScheduleDateTime.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.TrimEnd")));
			this.dtmToScheduleDateTime.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToScheduleDateTime.ParseInfo.TrimStart")));
			this.dtmToScheduleDateTime.PasswordChar = ((char)(resources.GetObject("dtmToScheduleDateTime.PasswordChar")));
			this.dtmToScheduleDateTime.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToScheduleDateTime.PostValidation.CaseSensitive")));
			this.dtmToScheduleDateTime.PostValidation.ErrorMessage = resources.GetString("dtmToScheduleDateTime.PostValidation.ErrorMessage");
			this.dtmToScheduleDateTime.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToScheduleDateTime.PostValidation.Inherit")));
			this.dtmToScheduleDateTime.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToScheduleDateTime.PostValidation.Validation")));
			this.dtmToScheduleDateTime.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToScheduleDateTime.PostValidation.Values")));
			this.dtmToScheduleDateTime.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToScheduleDateTime.PostValidation.ValuesExcluded")));
			this.dtmToScheduleDateTime.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToScheduleDateTime.PreValidation.CaseSensitive")));
			this.dtmToScheduleDateTime.PreValidation.ErrorMessage = resources.GetString("dtmToScheduleDateTime.PreValidation.ErrorMessage");
			this.dtmToScheduleDateTime.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToScheduleDateTime.PreValidation.Inherit")));
			this.dtmToScheduleDateTime.PreValidation.ItemSeparator = resources.GetString("dtmToScheduleDateTime.PreValidation.ItemSeparator");
			this.dtmToScheduleDateTime.PreValidation.PatternString = resources.GetString("dtmToScheduleDateTime.PreValidation.PatternString");
			this.dtmToScheduleDateTime.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToScheduleDateTime.PreValidation.RegexOptions")));
			this.dtmToScheduleDateTime.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToScheduleDateTime.PreValidation.TrimEnd")));
			this.dtmToScheduleDateTime.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToScheduleDateTime.PreValidation.TrimStart")));
			this.dtmToScheduleDateTime.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToScheduleDateTime.PreValidation.Validation")));
			this.dtmToScheduleDateTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToScheduleDateTime.RightToLeft")));
			this.dtmToScheduleDateTime.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToScheduleDateTime.ShowFocusRectangle")));
			this.dtmToScheduleDateTime.Size = ((System.Drawing.Size)(resources.GetObject("dtmToScheduleDateTime.Size")));
			this.dtmToScheduleDateTime.TabIndex = ((int)(resources.GetObject("dtmToScheduleDateTime.TabIndex")));
			this.dtmToScheduleDateTime.Tag = ((object)(resources.GetObject("dtmToScheduleDateTime.Tag")));
			this.dtmToScheduleDateTime.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToScheduleDateTime.TextAlign")));
			this.dtmToScheduleDateTime.TrimEnd = ((bool)(resources.GetObject("dtmToScheduleDateTime.TrimEnd")));
			this.dtmToScheduleDateTime.TrimStart = ((bool)(resources.GetObject("dtmToScheduleDateTime.TrimStart")));
			this.dtmToScheduleDateTime.UserCultureOverride = ((bool)(resources.GetObject("dtmToScheduleDateTime.UserCultureOverride")));
			this.dtmToScheduleDateTime.Value = ((object)(resources.GetObject("dtmToScheduleDateTime.Value")));
			this.dtmToScheduleDateTime.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToScheduleDateTime.VerticalAlign")));
			this.dtmToScheduleDateTime.Visible = ((bool)(resources.GetObject("dtmToScheduleDateTime.Visible")));
			this.dtmToScheduleDateTime.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToScheduleDateTime.VisibleButtons")));
			// 
			// dtmFromScheduleDateTime
			// 
			this.dtmFromScheduleDateTime.AcceptsEscape = ((bool)(resources.GetObject("dtmFromScheduleDateTime.AcceptsEscape")));
			this.dtmFromScheduleDateTime.AccessibleDescription = resources.GetString("dtmFromScheduleDateTime.AccessibleDescription");
			this.dtmFromScheduleDateTime.AccessibleName = resources.GetString("dtmFromScheduleDateTime.AccessibleName");
			this.dtmFromScheduleDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromScheduleDateTime.Anchor")));
			this.dtmFromScheduleDateTime.AutoSize = ((bool)(resources.GetObject("dtmFromScheduleDateTime.AutoSize")));
			this.dtmFromScheduleDateTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromScheduleDateTime.BackgroundImage")));
			this.dtmFromScheduleDateTime.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromScheduleDateTime.BorderStyle")));
			// 
			// dtmFromScheduleDateTime.Calendar
			// 
			this.dtmFromScheduleDateTime.Calendar.AccessibleDescription = resources.GetString("dtmFromScheduleDateTime.Calendar.AccessibleDescription");
			this.dtmFromScheduleDateTime.Calendar.AccessibleName = resources.GetString("dtmFromScheduleDateTime.Calendar.AccessibleName");
			this.dtmFromScheduleDateTime.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromScheduleDateTime.Calendar.AnnuallyBoldedDates")));
			this.dtmFromScheduleDateTime.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromScheduleDateTime.Calendar.BackgroundImage")));
			this.dtmFromScheduleDateTime.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromScheduleDateTime.Calendar.BoldedDates")));
			this.dtmFromScheduleDateTime.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromScheduleDateTime.Calendar.CalendarDimensions")));
			this.dtmFromScheduleDateTime.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromScheduleDateTime.Calendar.Enabled")));
			this.dtmFromScheduleDateTime.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromScheduleDateTime.Calendar.FirstDayOfWeek")));
			this.dtmFromScheduleDateTime.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromScheduleDateTime.Calendar.Font")));
			this.dtmFromScheduleDateTime.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromScheduleDateTime.Calendar.ImeMode")));
			this.dtmFromScheduleDateTime.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromScheduleDateTime.Calendar.MonthlyBoldedDates")));
			this.dtmFromScheduleDateTime.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromScheduleDateTime.Calendar.RightToLeft")));
			this.dtmFromScheduleDateTime.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromScheduleDateTime.Calendar.ShowClearButton")));
			this.dtmFromScheduleDateTime.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromScheduleDateTime.Calendar.ShowTodayButton")));
			this.dtmFromScheduleDateTime.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromScheduleDateTime.Calendar.ShowWeekNumbers")));
			this.dtmFromScheduleDateTime.CaseSensitive = ((bool)(resources.GetObject("dtmFromScheduleDateTime.CaseSensitive")));
			this.dtmFromScheduleDateTime.Culture = ((int)(resources.GetObject("dtmFromScheduleDateTime.Culture")));
			this.dtmFromScheduleDateTime.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromScheduleDateTime.CurrentTimeZone")));
			this.dtmFromScheduleDateTime.CustomFormat = resources.GetString("dtmFromScheduleDateTime.CustomFormat");
			this.dtmFromScheduleDateTime.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromScheduleDateTime.DaylightTimeAdjustment")));
			this.dtmFromScheduleDateTime.DisplayFormat.CustomFormat = resources.GetString("dtmFromScheduleDateTime.DisplayFormat.CustomFormat");
			this.dtmFromScheduleDateTime.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromScheduleDateTime.DisplayFormat.FormatType")));
			this.dtmFromScheduleDateTime.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromScheduleDateTime.DisplayFormat.Inherit")));
			this.dtmFromScheduleDateTime.DisplayFormat.NullText = resources.GetString("dtmFromScheduleDateTime.DisplayFormat.NullText");
			this.dtmFromScheduleDateTime.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromScheduleDateTime.DisplayFormat.TrimEnd")));
			this.dtmFromScheduleDateTime.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromScheduleDateTime.DisplayFormat.TrimStart")));
			this.dtmFromScheduleDateTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromScheduleDateTime.Dock")));
			this.dtmFromScheduleDateTime.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromScheduleDateTime.DropDownFormAlign")));
			this.dtmFromScheduleDateTime.EditFormat.CustomFormat = resources.GetString("dtmFromScheduleDateTime.EditFormat.CustomFormat");
			this.dtmFromScheduleDateTime.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromScheduleDateTime.EditFormat.FormatType")));
			this.dtmFromScheduleDateTime.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromScheduleDateTime.EditFormat.Inherit")));
			this.dtmFromScheduleDateTime.EditFormat.NullText = resources.GetString("dtmFromScheduleDateTime.EditFormat.NullText");
			this.dtmFromScheduleDateTime.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromScheduleDateTime.EditFormat.TrimEnd")));
			this.dtmFromScheduleDateTime.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromScheduleDateTime.EditFormat.TrimStart")));
			this.dtmFromScheduleDateTime.EditMask = resources.GetString("dtmFromScheduleDateTime.EditMask");
			this.dtmFromScheduleDateTime.EmptyAsNull = ((bool)(resources.GetObject("dtmFromScheduleDateTime.EmptyAsNull")));
			this.dtmFromScheduleDateTime.Enabled = ((bool)(resources.GetObject("dtmFromScheduleDateTime.Enabled")));
			this.dtmFromScheduleDateTime.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ErrorInfo.BeepOnError")));
			this.dtmFromScheduleDateTime.ErrorInfo.ErrorMessage = resources.GetString("dtmFromScheduleDateTime.ErrorInfo.ErrorMessage");
			this.dtmFromScheduleDateTime.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromScheduleDateTime.ErrorInfo.ErrorMessageCaption");
			this.dtmFromScheduleDateTime.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ErrorInfo.ShowErrorMessage")));
			this.dtmFromScheduleDateTime.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromScheduleDateTime.ErrorInfo.ValueOnError")));
			this.dtmFromScheduleDateTime.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromScheduleDateTime.Font")));
			this.dtmFromScheduleDateTime.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromScheduleDateTime.FormatType")));
			this.dtmFromScheduleDateTime.GapHeight = ((int)(resources.GetObject("dtmFromScheduleDateTime.GapHeight")));
			this.dtmFromScheduleDateTime.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromScheduleDateTime.GMTOffset")));
			this.dtmFromScheduleDateTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromScheduleDateTime.ImeMode")));
			this.dtmFromScheduleDateTime.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromScheduleDateTime.InitialSelection")));
			this.dtmFromScheduleDateTime.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromScheduleDateTime.Location")));
			this.dtmFromScheduleDateTime.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.AutoTabWhenFilled")));
			this.dtmFromScheduleDateTime.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.CaseSensitive")));
			this.dtmFromScheduleDateTime.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.CopyWithLiterals")));
			this.dtmFromScheduleDateTime.MaskInfo.EditMask = resources.GetString("dtmFromScheduleDateTime.MaskInfo.EditMask");
			this.dtmFromScheduleDateTime.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.EmptyAsNull")));
			this.dtmFromScheduleDateTime.MaskInfo.ErrorMessage = resources.GetString("dtmFromScheduleDateTime.MaskInfo.ErrorMessage");
			this.dtmFromScheduleDateTime.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.Inherit")));
			this.dtmFromScheduleDateTime.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.PromptChar")));
			this.dtmFromScheduleDateTime.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.ShowLiterals")));
			this.dtmFromScheduleDateTime.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromScheduleDateTime.MaskInfo.StoredEmptyChar")));
			this.dtmFromScheduleDateTime.MaxLength = ((int)(resources.GetObject("dtmFromScheduleDateTime.MaxLength")));
			this.dtmFromScheduleDateTime.Name = "dtmFromScheduleDateTime";
			this.dtmFromScheduleDateTime.NullText = resources.GetString("dtmFromScheduleDateTime.NullText");
			this.dtmFromScheduleDateTime.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.CaseSensitive")));
			this.dtmFromScheduleDateTime.ParseInfo.CustomFormat = resources.GetString("dtmFromScheduleDateTime.ParseInfo.CustomFormat");
			this.dtmFromScheduleDateTime.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.DateTimeStyle")));
			this.dtmFromScheduleDateTime.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.EmptyAsNull")));
			this.dtmFromScheduleDateTime.ParseInfo.ErrorMessage = resources.GetString("dtmFromScheduleDateTime.ParseInfo.ErrorMessage");
			this.dtmFromScheduleDateTime.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.FormatType")));
			this.dtmFromScheduleDateTime.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.Inherit")));
			this.dtmFromScheduleDateTime.ParseInfo.NullText = resources.GetString("dtmFromScheduleDateTime.ParseInfo.NullText");
			this.dtmFromScheduleDateTime.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.TrimEnd")));
			this.dtmFromScheduleDateTime.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ParseInfo.TrimStart")));
			this.dtmFromScheduleDateTime.PasswordChar = ((char)(resources.GetObject("dtmFromScheduleDateTime.PasswordChar")));
			this.dtmFromScheduleDateTime.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromScheduleDateTime.PostValidation.CaseSensitive")));
			this.dtmFromScheduleDateTime.PostValidation.ErrorMessage = resources.GetString("dtmFromScheduleDateTime.PostValidation.ErrorMessage");
			this.dtmFromScheduleDateTime.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromScheduleDateTime.PostValidation.Inherit")));
			this.dtmFromScheduleDateTime.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromScheduleDateTime.PostValidation.Validation")));
			this.dtmFromScheduleDateTime.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromScheduleDateTime.PostValidation.Values")));
			this.dtmFromScheduleDateTime.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromScheduleDateTime.PostValidation.ValuesExcluded")));
			this.dtmFromScheduleDateTime.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromScheduleDateTime.PreValidation.CaseSensitive")));
			this.dtmFromScheduleDateTime.PreValidation.ErrorMessage = resources.GetString("dtmFromScheduleDateTime.PreValidation.ErrorMessage");
			this.dtmFromScheduleDateTime.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromScheduleDateTime.PreValidation.Inherit")));
			this.dtmFromScheduleDateTime.PreValidation.ItemSeparator = resources.GetString("dtmFromScheduleDateTime.PreValidation.ItemSeparator");
			this.dtmFromScheduleDateTime.PreValidation.PatternString = resources.GetString("dtmFromScheduleDateTime.PreValidation.PatternString");
			this.dtmFromScheduleDateTime.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromScheduleDateTime.PreValidation.RegexOptions")));
			this.dtmFromScheduleDateTime.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromScheduleDateTime.PreValidation.TrimEnd")));
			this.dtmFromScheduleDateTime.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromScheduleDateTime.PreValidation.TrimStart")));
			this.dtmFromScheduleDateTime.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromScheduleDateTime.PreValidation.Validation")));
			this.dtmFromScheduleDateTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromScheduleDateTime.RightToLeft")));
			this.dtmFromScheduleDateTime.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromScheduleDateTime.ShowFocusRectangle")));
			this.dtmFromScheduleDateTime.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromScheduleDateTime.Size")));
			this.dtmFromScheduleDateTime.TabIndex = ((int)(resources.GetObject("dtmFromScheduleDateTime.TabIndex")));
			this.dtmFromScheduleDateTime.Tag = ((object)(resources.GetObject("dtmFromScheduleDateTime.Tag")));
			this.dtmFromScheduleDateTime.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromScheduleDateTime.TextAlign")));
			this.dtmFromScheduleDateTime.TrimEnd = ((bool)(resources.GetObject("dtmFromScheduleDateTime.TrimEnd")));
			this.dtmFromScheduleDateTime.TrimStart = ((bool)(resources.GetObject("dtmFromScheduleDateTime.TrimStart")));
			this.dtmFromScheduleDateTime.UserCultureOverride = ((bool)(resources.GetObject("dtmFromScheduleDateTime.UserCultureOverride")));
			this.dtmFromScheduleDateTime.Value = ((object)(resources.GetObject("dtmFromScheduleDateTime.Value")));
			this.dtmFromScheduleDateTime.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromScheduleDateTime.VerticalAlign")));
			this.dtmFromScheduleDateTime.Visible = ((bool)(resources.GetObject("dtmFromScheduleDateTime.Visible")));
			this.dtmFromScheduleDateTime.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromScheduleDateTime.VisibleButtons")));
			// 
			// btnSearchMasLoc
			// 
			this.btnSearchMasLoc.AccessibleDescription = resources.GetString("btnSearchMasLoc.AccessibleDescription");
			this.btnSearchMasLoc.AccessibleName = resources.GetString("btnSearchMasLoc.AccessibleName");
			this.btnSearchMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearchMasLoc.Anchor")));
			this.btnSearchMasLoc.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearchMasLoc.BackgroundImage")));
			this.btnSearchMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearchMasLoc.Dock")));
			this.btnSearchMasLoc.Enabled = ((bool)(resources.GetObject("btnSearchMasLoc.Enabled")));
			this.btnSearchMasLoc.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearchMasLoc.FlatStyle")));
			this.btnSearchMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("btnSearchMasLoc.Font")));
			this.btnSearchMasLoc.Image = ((System.Drawing.Image)(resources.GetObject("btnSearchMasLoc.Image")));
			this.btnSearchMasLoc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchMasLoc.ImageAlign")));
			this.btnSearchMasLoc.ImageIndex = ((int)(resources.GetObject("btnSearchMasLoc.ImageIndex")));
			this.btnSearchMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearchMasLoc.ImeMode")));
			this.btnSearchMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("btnSearchMasLoc.Location")));
			this.btnSearchMasLoc.Name = "btnSearchMasLoc";
			this.btnSearchMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearchMasLoc.RightToLeft")));
			this.btnSearchMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("btnSearchMasLoc.Size")));
			this.btnSearchMasLoc.TabIndex = ((int)(resources.GetObject("btnSearchMasLoc.TabIndex")));
			this.btnSearchMasLoc.Text = resources.GetString("btnSearchMasLoc.Text");
			this.btnSearchMasLoc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchMasLoc.TextAlign")));
			this.btnSearchMasLoc.Visible = ((bool)(resources.GetObject("btnSearchMasLoc.Visible")));
			this.btnSearchMasLoc.Click += new System.EventHandler(this.btnSearchMasLoc_Click);
			// 
			// txtMasLoc
			// 
			this.txtMasLoc.AccessibleDescription = resources.GetString("txtMasLoc.AccessibleDescription");
			this.txtMasLoc.AccessibleName = resources.GetString("txtMasLoc.AccessibleName");
			this.txtMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtMasLoc.Anchor")));
			this.txtMasLoc.AutoSize = ((bool)(resources.GetObject("txtMasLoc.AutoSize")));
			this.txtMasLoc.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtMasLoc.BackgroundImage")));
			this.txtMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtMasLoc.Dock")));
			this.txtMasLoc.Enabled = ((bool)(resources.GetObject("txtMasLoc.Enabled")));
			this.txtMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("txtMasLoc.Font")));
			this.txtMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtMasLoc.ImeMode")));
			this.txtMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("txtMasLoc.Location")));
			this.txtMasLoc.MaxLength = ((int)(resources.GetObject("txtMasLoc.MaxLength")));
			this.txtMasLoc.Multiline = ((bool)(resources.GetObject("txtMasLoc.Multiline")));
			this.txtMasLoc.Name = "txtMasLoc";
			this.txtMasLoc.PasswordChar = ((char)(resources.GetObject("txtMasLoc.PasswordChar")));
			this.txtMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtMasLoc.RightToLeft")));
			this.txtMasLoc.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtMasLoc.ScrollBars")));
			this.txtMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("txtMasLoc.Size")));
			this.txtMasLoc.TabIndex = ((int)(resources.GetObject("txtMasLoc.TabIndex")));
			this.txtMasLoc.Text = resources.GetString("txtMasLoc.Text");
			this.txtMasLoc.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtMasLoc.TextAlign")));
			this.txtMasLoc.Visible = ((bool)(resources.GetObject("txtMasLoc.Visible")));
			this.txtMasLoc.WordWrap = ((bool)(resources.GetObject("txtMasLoc.WordWrap")));
			this.txtMasLoc.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMasLoc_KeyDown);
			this.txtMasLoc.Validating += new System.ComponentModel.CancelEventHandler(this.txtMasLoc_Validating);
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.AfterColEdit += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColEdit);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// lblMasLoc
			// 
			this.lblMasLoc.AccessibleDescription = resources.GetString("lblMasLoc.AccessibleDescription");
			this.lblMasLoc.AccessibleName = resources.GetString("lblMasLoc.AccessibleName");
			this.lblMasLoc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblMasLoc.Anchor")));
			this.lblMasLoc.AutoSize = ((bool)(resources.GetObject("lblMasLoc.AutoSize")));
			this.lblMasLoc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblMasLoc.Dock")));
			this.lblMasLoc.Enabled = ((bool)(resources.GetObject("lblMasLoc.Enabled")));
			this.lblMasLoc.Font = ((System.Drawing.Font)(resources.GetObject("lblMasLoc.Font")));
			this.lblMasLoc.ForeColor = System.Drawing.Color.Maroon;
			this.lblMasLoc.Image = ((System.Drawing.Image)(resources.GetObject("lblMasLoc.Image")));
			this.lblMasLoc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMasLoc.ImageAlign")));
			this.lblMasLoc.ImageIndex = ((int)(resources.GetObject("lblMasLoc.ImageIndex")));
			this.lblMasLoc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblMasLoc.ImeMode")));
			this.lblMasLoc.Location = ((System.Drawing.Point)(resources.GetObject("lblMasLoc.Location")));
			this.lblMasLoc.Name = "lblMasLoc";
			this.lblMasLoc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblMasLoc.RightToLeft")));
			this.lblMasLoc.Size = ((System.Drawing.Size)(resources.GetObject("lblMasLoc.Size")));
			this.lblMasLoc.TabIndex = ((int)(resources.GetObject("lblMasLoc.TabIndex")));
			this.lblMasLoc.Text = resources.GetString("lblMasLoc.Text");
			this.lblMasLoc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMasLoc.TextAlign")));
			this.lblMasLoc.Visible = ((bool)(resources.GetObject("lblMasLoc.Visible")));
			// 
			// btnSearch
			// 
			this.btnSearch.AccessibleDescription = resources.GetString("btnSearch.AccessibleDescription");
			this.btnSearch.AccessibleName = resources.GetString("btnSearch.AccessibleName");
			this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearch.Anchor")));
			this.btnSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearch.BackgroundImage")));
			this.btnSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearch.Dock")));
			this.btnSearch.Enabled = ((bool)(resources.GetObject("btnSearch.Enabled")));
			this.btnSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearch.FlatStyle")));
			this.btnSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnSearch.Font")));
			this.btnSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnSearch.Image")));
			this.btnSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.ImageAlign")));
			this.btnSearch.ImageIndex = ((int)(resources.GetObject("btnSearch.ImageIndex")));
			this.btnSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearch.ImeMode")));
			this.btnSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnSearch.Location")));
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearch.RightToLeft")));
			this.btnSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnSearch.Size")));
			this.btnSearch.TabIndex = ((int)(resources.GetObject("btnSearch.TabIndex")));
			this.btnSearch.Text = resources.GetString("btnSearch.Text");
			this.btnSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearch.TextAlign")));
			this.btnSearch.Visible = ((bool)(resources.GetObject("btnSearch.Visible")));
			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// btnClosePO
			// 
			this.btnClosePO.AccessibleDescription = resources.GetString("btnClosePO.AccessibleDescription");
			this.btnClosePO.AccessibleName = resources.GetString("btnClosePO.AccessibleName");
			this.btnClosePO.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClosePO.Anchor")));
			this.btnClosePO.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClosePO.BackgroundImage")));
			this.btnClosePO.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClosePO.Dock")));
			this.btnClosePO.Enabled = ((bool)(resources.GetObject("btnClosePO.Enabled")));
			this.btnClosePO.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClosePO.FlatStyle")));
			this.btnClosePO.Font = ((System.Drawing.Font)(resources.GetObject("btnClosePO.Font")));
			this.btnClosePO.Image = ((System.Drawing.Image)(resources.GetObject("btnClosePO.Image")));
			this.btnClosePO.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClosePO.ImageAlign")));
			this.btnClosePO.ImageIndex = ((int)(resources.GetObject("btnClosePO.ImageIndex")));
			this.btnClosePO.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClosePO.ImeMode")));
			this.btnClosePO.Location = ((System.Drawing.Point)(resources.GetObject("btnClosePO.Location")));
			this.btnClosePO.Name = "btnClosePO";
			this.btnClosePO.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClosePO.RightToLeft")));
			this.btnClosePO.Size = ((System.Drawing.Size)(resources.GetObject("btnClosePO.Size")));
			this.btnClosePO.TabIndex = ((int)(resources.GetObject("btnClosePO.TabIndex")));
			this.btnClosePO.Text = resources.GetString("btnClosePO.Text");
			this.btnClosePO.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClosePO.TextAlign")));
			this.btnClosePO.Visible = ((bool)(resources.GetObject("btnClosePO.Visible")));
			this.btnClosePO.Click += new System.EventHandler(this.btnClosePO_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// chkSelectAll
			// 
			this.chkSelectAll.AccessibleDescription = resources.GetString("chkSelectAll.AccessibleDescription");
			this.chkSelectAll.AccessibleName = resources.GetString("chkSelectAll.AccessibleName");
			this.chkSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkSelectAll.Anchor")));
			this.chkSelectAll.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkSelectAll.Appearance")));
			this.chkSelectAll.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkSelectAll.BackgroundImage")));
			this.chkSelectAll.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.CheckAlign")));
			this.chkSelectAll.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkSelectAll.Dock")));
			this.chkSelectAll.Enabled = ((bool)(resources.GetObject("chkSelectAll.Enabled")));
			this.chkSelectAll.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkSelectAll.FlatStyle")));
			this.chkSelectAll.Font = ((System.Drawing.Font)(resources.GetObject("chkSelectAll.Font")));
			this.chkSelectAll.Image = ((System.Drawing.Image)(resources.GetObject("chkSelectAll.Image")));
			this.chkSelectAll.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.ImageAlign")));
			this.chkSelectAll.ImageIndex = ((int)(resources.GetObject("chkSelectAll.ImageIndex")));
			this.chkSelectAll.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkSelectAll.ImeMode")));
			this.chkSelectAll.Location = ((System.Drawing.Point)(resources.GetObject("chkSelectAll.Location")));
			this.chkSelectAll.Name = "chkSelectAll";
			this.chkSelectAll.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkSelectAll.RightToLeft")));
			this.chkSelectAll.Size = ((System.Drawing.Size)(resources.GetObject("chkSelectAll.Size")));
			this.chkSelectAll.TabIndex = ((int)(resources.GetObject("chkSelectAll.TabIndex")));
			this.chkSelectAll.Text = resources.GetString("chkSelectAll.Text");
			this.chkSelectAll.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkSelectAll.TextAlign")));
			this.chkSelectAll.Visible = ((bool)(resources.GetObject("chkSelectAll.Visible")));
			this.chkSelectAll.Enter += new System.EventHandler(this.chkSelectAll_Enter);
			this.chkSelectAll.Leave += new System.EventHandler(this.chkSelectAll_Leave);
			this.chkSelectAll.CheckedChanged += new System.EventHandler(this.chkSelectAll_CheckedChanged);
			// 
			// lblFromScheduleDateTime
			// 
			this.lblFromScheduleDateTime.AccessibleDescription = resources.GetString("lblFromScheduleDateTime.AccessibleDescription");
			this.lblFromScheduleDateTime.AccessibleName = resources.GetString("lblFromScheduleDateTime.AccessibleName");
			this.lblFromScheduleDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromScheduleDateTime.Anchor")));
			this.lblFromScheduleDateTime.AutoSize = ((bool)(resources.GetObject("lblFromScheduleDateTime.AutoSize")));
			this.lblFromScheduleDateTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromScheduleDateTime.Dock")));
			this.lblFromScheduleDateTime.Enabled = ((bool)(resources.GetObject("lblFromScheduleDateTime.Enabled")));
			this.lblFromScheduleDateTime.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblFromScheduleDateTime.Font = ((System.Drawing.Font)(resources.GetObject("lblFromScheduleDateTime.Font")));
			this.lblFromScheduleDateTime.ForeColor = System.Drawing.Color.Black;
			this.lblFromScheduleDateTime.Image = ((System.Drawing.Image)(resources.GetObject("lblFromScheduleDateTime.Image")));
			this.lblFromScheduleDateTime.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromScheduleDateTime.ImageAlign")));
			this.lblFromScheduleDateTime.ImageIndex = ((int)(resources.GetObject("lblFromScheduleDateTime.ImageIndex")));
			this.lblFromScheduleDateTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromScheduleDateTime.ImeMode")));
			this.lblFromScheduleDateTime.Location = ((System.Drawing.Point)(resources.GetObject("lblFromScheduleDateTime.Location")));
			this.lblFromScheduleDateTime.Name = "lblFromScheduleDateTime";
			this.lblFromScheduleDateTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromScheduleDateTime.RightToLeft")));
			this.lblFromScheduleDateTime.Size = ((System.Drawing.Size)(resources.GetObject("lblFromScheduleDateTime.Size")));
			this.lblFromScheduleDateTime.TabIndex = ((int)(resources.GetObject("lblFromScheduleDateTime.TabIndex")));
			this.lblFromScheduleDateTime.Text = resources.GetString("lblFromScheduleDateTime.Text");
			this.lblFromScheduleDateTime.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromScheduleDateTime.TextAlign")));
			this.lblFromScheduleDateTime.Visible = ((bool)(resources.GetObject("lblFromScheduleDateTime.Visible")));
			// 
			// btnSearchPONo
			// 
			this.btnSearchPONo.AccessibleDescription = resources.GetString("btnSearchPONo.AccessibleDescription");
			this.btnSearchPONo.AccessibleName = resources.GetString("btnSearchPONo.AccessibleName");
			this.btnSearchPONo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearchPONo.Anchor")));
			this.btnSearchPONo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearchPONo.BackgroundImage")));
			this.btnSearchPONo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearchPONo.Dock")));
			this.btnSearchPONo.Enabled = ((bool)(resources.GetObject("btnSearchPONo.Enabled")));
			this.btnSearchPONo.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearchPONo.FlatStyle")));
			this.btnSearchPONo.Font = ((System.Drawing.Font)(resources.GetObject("btnSearchPONo.Font")));
			this.btnSearchPONo.Image = ((System.Drawing.Image)(resources.GetObject("btnSearchPONo.Image")));
			this.btnSearchPONo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchPONo.ImageAlign")));
			this.btnSearchPONo.ImageIndex = ((int)(resources.GetObject("btnSearchPONo.ImageIndex")));
			this.btnSearchPONo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearchPONo.ImeMode")));
			this.btnSearchPONo.Location = ((System.Drawing.Point)(resources.GetObject("btnSearchPONo.Location")));
			this.btnSearchPONo.Name = "btnSearchPONo";
			this.btnSearchPONo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearchPONo.RightToLeft")));
			this.btnSearchPONo.Size = ((System.Drawing.Size)(resources.GetObject("btnSearchPONo.Size")));
			this.btnSearchPONo.TabIndex = ((int)(resources.GetObject("btnSearchPONo.TabIndex")));
			this.btnSearchPONo.Text = resources.GetString("btnSearchPONo.Text");
			this.btnSearchPONo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchPONo.TextAlign")));
			this.btnSearchPONo.Visible = ((bool)(resources.GetObject("btnSearchPONo.Visible")));
			this.btnSearchPONo.Click += new System.EventHandler(this.btnSearchPONo_Click);
			// 
			// txtPONo
			// 
			this.txtPONo.AccessibleDescription = resources.GetString("txtPONo.AccessibleDescription");
			this.txtPONo.AccessibleName = resources.GetString("txtPONo.AccessibleName");
			this.txtPONo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPONo.Anchor")));
			this.txtPONo.AutoSize = ((bool)(resources.GetObject("txtPONo.AutoSize")));
			this.txtPONo.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPONo.BackgroundImage")));
			this.txtPONo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPONo.Dock")));
			this.txtPONo.Enabled = ((bool)(resources.GetObject("txtPONo.Enabled")));
			this.txtPONo.Font = ((System.Drawing.Font)(resources.GetObject("txtPONo.Font")));
			this.txtPONo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPONo.ImeMode")));
			this.txtPONo.Location = ((System.Drawing.Point)(resources.GetObject("txtPONo.Location")));
			this.txtPONo.MaxLength = ((int)(resources.GetObject("txtPONo.MaxLength")));
			this.txtPONo.Multiline = ((bool)(resources.GetObject("txtPONo.Multiline")));
			this.txtPONo.Name = "txtPONo";
			this.txtPONo.PasswordChar = ((char)(resources.GetObject("txtPONo.PasswordChar")));
			this.txtPONo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPONo.RightToLeft")));
			this.txtPONo.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtPONo.ScrollBars")));
			this.txtPONo.Size = ((System.Drawing.Size)(resources.GetObject("txtPONo.Size")));
			this.txtPONo.TabIndex = ((int)(resources.GetObject("txtPONo.TabIndex")));
			this.txtPONo.Text = resources.GetString("txtPONo.Text");
			this.txtPONo.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPONo.TextAlign")));
			this.txtPONo.Visible = ((bool)(resources.GetObject("txtPONo.Visible")));
			this.txtPONo.WordWrap = ((bool)(resources.GetObject("txtPONo.WordWrap")));
			this.txtPONo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPONo_KeyDown);
			this.txtPONo.Validating += new System.ComponentModel.CancelEventHandler(this.txtPONo_Validating);
			// 
			// lblPONo
			// 
			this.lblPONo.AccessibleDescription = resources.GetString("lblPONo.AccessibleDescription");
			this.lblPONo.AccessibleName = resources.GetString("lblPONo.AccessibleName");
			this.lblPONo.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPONo.Anchor")));
			this.lblPONo.AutoSize = ((bool)(resources.GetObject("lblPONo.AutoSize")));
			this.lblPONo.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPONo.Dock")));
			this.lblPONo.Enabled = ((bool)(resources.GetObject("lblPONo.Enabled")));
			this.lblPONo.Font = ((System.Drawing.Font)(resources.GetObject("lblPONo.Font")));
			this.lblPONo.ForeColor = System.Drawing.SystemColors.ControlText;
			this.lblPONo.Image = ((System.Drawing.Image)(resources.GetObject("lblPONo.Image")));
			this.lblPONo.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPONo.ImageAlign")));
			this.lblPONo.ImageIndex = ((int)(resources.GetObject("lblPONo.ImageIndex")));
			this.lblPONo.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPONo.ImeMode")));
			this.lblPONo.Location = ((System.Drawing.Point)(resources.GetObject("lblPONo.Location")));
			this.lblPONo.Name = "lblPONo";
			this.lblPONo.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPONo.RightToLeft")));
			this.lblPONo.Size = ((System.Drawing.Size)(resources.GetObject("lblPONo.Size")));
			this.lblPONo.TabIndex = ((int)(resources.GetObject("lblPONo.TabIndex")));
			this.lblPONo.Text = resources.GetString("lblPONo.Text");
			this.lblPONo.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPONo.TextAlign")));
			this.lblPONo.Visible = ((bool)(resources.GetObject("lblPONo.Visible")));
			// 
			// lblToScheduleDateTime
			// 
			this.lblToScheduleDateTime.AccessibleDescription = resources.GetString("lblToScheduleDateTime.AccessibleDescription");
			this.lblToScheduleDateTime.AccessibleName = resources.GetString("lblToScheduleDateTime.AccessibleName");
			this.lblToScheduleDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToScheduleDateTime.Anchor")));
			this.lblToScheduleDateTime.AutoSize = ((bool)(resources.GetObject("lblToScheduleDateTime.AutoSize")));
			this.lblToScheduleDateTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToScheduleDateTime.Dock")));
			this.lblToScheduleDateTime.Enabled = ((bool)(resources.GetObject("lblToScheduleDateTime.Enabled")));
			this.lblToScheduleDateTime.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.lblToScheduleDateTime.Font = ((System.Drawing.Font)(resources.GetObject("lblToScheduleDateTime.Font")));
			this.lblToScheduleDateTime.ForeColor = System.Drawing.Color.Black;
			this.lblToScheduleDateTime.Image = ((System.Drawing.Image)(resources.GetObject("lblToScheduleDateTime.Image")));
			this.lblToScheduleDateTime.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToScheduleDateTime.ImageAlign")));
			this.lblToScheduleDateTime.ImageIndex = ((int)(resources.GetObject("lblToScheduleDateTime.ImageIndex")));
			this.lblToScheduleDateTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToScheduleDateTime.ImeMode")));
			this.lblToScheduleDateTime.Location = ((System.Drawing.Point)(resources.GetObject("lblToScheduleDateTime.Location")));
			this.lblToScheduleDateTime.Name = "lblToScheduleDateTime";
			this.lblToScheduleDateTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToScheduleDateTime.RightToLeft")));
			this.lblToScheduleDateTime.Size = ((System.Drawing.Size)(resources.GetObject("lblToScheduleDateTime.Size")));
			this.lblToScheduleDateTime.TabIndex = ((int)(resources.GetObject("lblToScheduleDateTime.TabIndex")));
			this.lblToScheduleDateTime.Text = resources.GetString("lblToScheduleDateTime.Text");
			this.lblToScheduleDateTime.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToScheduleDateTime.TextAlign")));
			this.lblToScheduleDateTime.Visible = ((bool)(resources.GetObject("lblToScheduleDateTime.Visible")));
			// 
			// cboCloseOrOpen
			// 
			this.cboCloseOrOpen.AccessibleDescription = resources.GetString("cboCloseOrOpen.AccessibleDescription");
			this.cboCloseOrOpen.AccessibleName = resources.GetString("cboCloseOrOpen.AccessibleName");
			this.cboCloseOrOpen.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCloseOrOpen.Anchor")));
			this.cboCloseOrOpen.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCloseOrOpen.BackgroundImage")));
			this.cboCloseOrOpen.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCloseOrOpen.Dock")));
			this.cboCloseOrOpen.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboCloseOrOpen.Enabled = ((bool)(resources.GetObject("cboCloseOrOpen.Enabled")));
			this.cboCloseOrOpen.Font = ((System.Drawing.Font)(resources.GetObject("cboCloseOrOpen.Font")));
			this.cboCloseOrOpen.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCloseOrOpen.ImeMode")));
			this.cboCloseOrOpen.IntegralHeight = ((bool)(resources.GetObject("cboCloseOrOpen.IntegralHeight")));
			this.cboCloseOrOpen.ItemHeight = ((int)(resources.GetObject("cboCloseOrOpen.ItemHeight")));
			this.cboCloseOrOpen.Location = ((System.Drawing.Point)(resources.GetObject("cboCloseOrOpen.Location")));
			this.cboCloseOrOpen.MaxDropDownItems = ((int)(resources.GetObject("cboCloseOrOpen.MaxDropDownItems")));
			this.cboCloseOrOpen.MaxLength = ((int)(resources.GetObject("cboCloseOrOpen.MaxLength")));
			this.cboCloseOrOpen.Name = "cboCloseOrOpen";
			this.cboCloseOrOpen.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCloseOrOpen.RightToLeft")));
			this.cboCloseOrOpen.Size = ((System.Drawing.Size)(resources.GetObject("cboCloseOrOpen.Size")));
			this.cboCloseOrOpen.TabIndex = ((int)(resources.GetObject("cboCloseOrOpen.TabIndex")));
			this.cboCloseOrOpen.Text = resources.GetString("cboCloseOrOpen.Text");
			this.cboCloseOrOpen.Visible = ((bool)(resources.GetObject("cboCloseOrOpen.Visible")));
			// 
			// lblCloseOrOpen
			// 
			this.lblCloseOrOpen.AccessibleDescription = resources.GetString("lblCloseOrOpen.AccessibleDescription");
			this.lblCloseOrOpen.AccessibleName = resources.GetString("lblCloseOrOpen.AccessibleName");
			this.lblCloseOrOpen.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCloseOrOpen.Anchor")));
			this.lblCloseOrOpen.AutoSize = ((bool)(resources.GetObject("lblCloseOrOpen.AutoSize")));
			this.lblCloseOrOpen.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCloseOrOpen.Dock")));
			this.lblCloseOrOpen.Enabled = ((bool)(resources.GetObject("lblCloseOrOpen.Enabled")));
			this.lblCloseOrOpen.Font = ((System.Drawing.Font)(resources.GetObject("lblCloseOrOpen.Font")));
			this.lblCloseOrOpen.ForeColor = System.Drawing.Color.Maroon;
			this.lblCloseOrOpen.Image = ((System.Drawing.Image)(resources.GetObject("lblCloseOrOpen.Image")));
			this.lblCloseOrOpen.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCloseOrOpen.ImageAlign")));
			this.lblCloseOrOpen.ImageIndex = ((int)(resources.GetObject("lblCloseOrOpen.ImageIndex")));
			this.lblCloseOrOpen.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCloseOrOpen.ImeMode")));
			this.lblCloseOrOpen.Location = ((System.Drawing.Point)(resources.GetObject("lblCloseOrOpen.Location")));
			this.lblCloseOrOpen.Name = "lblCloseOrOpen";
			this.lblCloseOrOpen.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCloseOrOpen.RightToLeft")));
			this.lblCloseOrOpen.Size = ((System.Drawing.Size)(resources.GetObject("lblCloseOrOpen.Size")));
			this.lblCloseOrOpen.TabIndex = ((int)(resources.GetObject("lblCloseOrOpen.TabIndex")));
			this.lblCloseOrOpen.Text = resources.GetString("lblCloseOrOpen.Text");
			this.lblCloseOrOpen.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCloseOrOpen.TextAlign")));
			this.lblCloseOrOpen.Visible = ((bool)(resources.GetObject("lblCloseOrOpen.Visible")));
			// 
			// lblClose
			// 
			this.lblClose.AccessibleDescription = resources.GetString("lblClose.AccessibleDescription");
			this.lblClose.AccessibleName = resources.GetString("lblClose.AccessibleName");
			this.lblClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblClose.Anchor")));
			this.lblClose.AutoSize = ((bool)(resources.GetObject("lblClose.AutoSize")));
			this.lblClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblClose.Dock")));
			this.lblClose.Enabled = ((bool)(resources.GetObject("lblClose.Enabled")));
			this.lblClose.Font = ((System.Drawing.Font)(resources.GetObject("lblClose.Font")));
			this.lblClose.Image = ((System.Drawing.Image)(resources.GetObject("lblClose.Image")));
			this.lblClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblClose.ImageAlign")));
			this.lblClose.ImageIndex = ((int)(resources.GetObject("lblClose.ImageIndex")));
			this.lblClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblClose.ImeMode")));
			this.lblClose.Location = ((System.Drawing.Point)(resources.GetObject("lblClose.Location")));
			this.lblClose.Name = "lblClose";
			this.lblClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblClose.RightToLeft")));
			this.lblClose.Size = ((System.Drawing.Size)(resources.GetObject("lblClose.Size")));
			this.lblClose.TabIndex = ((int)(resources.GetObject("lblClose.TabIndex")));
			this.lblClose.Text = resources.GetString("lblClose.Text");
			this.lblClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblClose.TextAlign")));
			this.lblClose.Visible = ((bool)(resources.GetObject("lblClose.Visible")));
			// 
			// lblOpen
			// 
			this.lblOpen.AccessibleDescription = resources.GetString("lblOpen.AccessibleDescription");
			this.lblOpen.AccessibleName = resources.GetString("lblOpen.AccessibleName");
			this.lblOpen.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblOpen.Anchor")));
			this.lblOpen.AutoSize = ((bool)(resources.GetObject("lblOpen.AutoSize")));
			this.lblOpen.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblOpen.Dock")));
			this.lblOpen.Enabled = ((bool)(resources.GetObject("lblOpen.Enabled")));
			this.lblOpen.Font = ((System.Drawing.Font)(resources.GetObject("lblOpen.Font")));
			this.lblOpen.Image = ((System.Drawing.Image)(resources.GetObject("lblOpen.Image")));
			this.lblOpen.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblOpen.ImageAlign")));
			this.lblOpen.ImageIndex = ((int)(resources.GetObject("lblOpen.ImageIndex")));
			this.lblOpen.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblOpen.ImeMode")));
			this.lblOpen.Location = ((System.Drawing.Point)(resources.GetObject("lblOpen.Location")));
			this.lblOpen.Name = "lblOpen";
			this.lblOpen.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblOpen.RightToLeft")));
			this.lblOpen.Size = ((System.Drawing.Size)(resources.GetObject("lblOpen.Size")));
			this.lblOpen.TabIndex = ((int)(resources.GetObject("lblOpen.TabIndex")));
			this.lblOpen.Text = resources.GetString("lblOpen.Text");
			this.lblOpen.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblOpen.TextAlign")));
			this.lblOpen.Visible = ((bool)(resources.GetObject("lblOpen.Visible")));
			// 
			// CloseOpenPurchaseOrder
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.lblOpen);
			this.Controls.Add(this.lblClose);
			this.Controls.Add(this.cboCloseOrOpen);
			this.Controls.Add(this.txtPONo);
			this.Controls.Add(this.txtMasLoc);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.lblCloseOrOpen);
			this.Controls.Add(this.dtmToScheduleDateTime);
			this.Controls.Add(this.dtmFromScheduleDateTime);
			this.Controls.Add(this.lblToScheduleDateTime);
			this.Controls.Add(this.btnSearchPONo);
			this.Controls.Add(this.lblPONo);
			this.Controls.Add(this.cboCCN);
			this.Controls.Add(this.btnSearchMasLoc);
			this.Controls.Add(this.lblMasLoc);
			this.Controls.Add(this.btnSearch);
			this.Controls.Add(this.btnClosePO);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.chkSelectAll);
			this.Controls.Add(this.lblFromScheduleDateTime);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "CloseOpenPurchaseOrder";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Load += new System.EventHandler(this.CloseOpenPurchaseOrder_Load);
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToScheduleDateTime)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromScheduleDateTime)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
		/// <summary>
		/// CloseOpenPurchaseOrder_Load
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, Nov 24 2005</date>
		private void CloseOpenPurchaseOrder_Load(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".CloseOpenPurchaseOrder_Load()";
			try
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW ,MessageBoxIcon.Warning);
					return;
				}
				// Load combo box
				
				DataSet dstCCN = boUtil.ListCCN();
				cboCCN.DataSource = dstCCN.Tables[MST_CCNTable.TABLE_NAME];
				cboCCN.DisplayMember = MST_CCNTable.CODE_FLD;
				cboCCN.ValueMember = MST_CCNTable.CCNID_FLD;
				//Fill Default Master Location 
				FormControlComponents.SetDefaultMasterLocation(txtMasLoc);

				FormControlComponents.PutDataIntoC1ComboBox(cboCCN, dstCCN.Tables[MST_CCNTable.TABLE_NAME],MST_CCNTable.CODE_FLD,MST_CCNTable.CCNID_FLD,MST_CCNTable.TABLE_NAME);
				if (SystemProperty.CCNID != 0)
				{
					cboCCN.SelectedValue = SystemProperty.CCNID;
				}
				//Store grid layout
				dtbGridLayOut = FormControlComponents.StoreGridLayout(dgrdData);
				//Load Close/Open combo box
				cboCloseOrOpen.Items.Clear();
				cboCloseOrOpen.Items.Add(lblClose.Text);// = 0
				cboCloseOrOpen.Items.Add(lblOpen.Text);   // = 1
				cboCloseOrOpen.SelectedIndex = 0;
				//format datetime
				dtmFromScheduleDateTime.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
				dtmToScheduleDateTime.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}

		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		/// <summary>
		/// btnSearchMasLoc_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void btnSearchMasLoc_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearchMasLoc_Click()";
			try
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				//User has selected CCN
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, txtMasLoc.Text.Trim(), htbCriteria, true);
				if (drwResult != null)
				{
					txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
					txtMasLoc.Tag = drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
				}

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtMasLoc_Validating
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void txtMasLoc_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMasLoc_Validating()";
			try
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				if (txtMasLoc.Text.Trim() == string.Empty)
				{
					return;
				}
				//User has selected CCN
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, txtMasLoc.Text.Trim(), htbCriteria, false);
				if (drwResult != null)
				{
					txtMasLoc.Text = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
					txtMasLoc.Tag = drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
				}
				else
				{
					e.Cancel = true;
				}
				
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// btnSearchPONo_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void btnSearchPONo_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearchPONo_Click()";
			try
			{
				Hashtable htbCondition = new Hashtable();
				if (txtMasLoc.Text != string.Empty)
				{
					htbCondition.Add(PO_PurchaseOrderMasterTable.MASTERLOCATIONID_FLD, int.Parse(txtMasLoc.Tag.ToString()));	
				}
				else
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_MASTERLOCATION, MessageBoxIcon.Warning);
					txtPONo.Text = string.Empty;
					txtMasLoc.Focus();
					return;
				}
				DataRowView drwResult = FormControlComponents.OpenSearchForm(PO_PurchaseOrderMasterTable.TABLE_NAME, PO_PurchaseOrderMasterTable.CODE_FLD, txtPONo.Text.Trim(), htbCondition, true);
				if (drwResult != null)
				{
					txtPONo.Text = drwResult[PO_PurchaseOrderMasterTable.CODE_FLD].ToString();
					txtPONo.Tag = drwResult[PO_PurchaseOrderMasterTable.PURCHASEORDERMASTERID_FLD];
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtPONo_Validating
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void txtPONo_Validating(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtPONo_Validating()";
			try
			{
				if (txtPONo.Text == string.Empty)
				{
					txtPONo.Tag = null;
//					CreateDataSet();
//					dgrdData.DataSource = dstData.Tables[0];
//					FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
					return;
				}
				Hashtable htbCondition = new Hashtable();
				if (txtMasLoc.Text != string.Empty)
				{
					htbCondition.Add(PO_PurchaseOrderMasterTable.MASTERLOCATIONID_FLD, int.Parse(txtMasLoc.Tag.ToString()));	
				}
				else
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_RGA_MASTERLOCATION, MessageBoxIcon.Warning);
					txtPONo.Text = string.Empty;
					txtMasLoc.Focus();
					return;
				} 
				DataRowView drwResult = FormControlComponents.OpenSearchForm(PO_PurchaseOrderMasterTable.TABLE_NAME, PO_PurchaseOrderMasterTable.CODE_FLD, txtPONo.Text.Trim(), htbCondition, false);
				if (drwResult != null)
				{
					txtPONo.Text = drwResult[PO_PurchaseOrderMasterTable.CODE_FLD].ToString();
					txtPONo.Tag = drwResult[PO_PurchaseOrderMasterTable.PURCHASEORDERMASTERID_FLD];
				}
				else
					e.Cancel = true;
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// Create DataSet to bind blank grid
		/// </summary>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void CreateDataSet()
		{
			const string METHOD_NAME = THIS + ".CreateDataSet()";
			try
			{
				dstData.Tables.Add(PO_PurchaseOrderDetailTable.TABLE_NAME);
				//insert columns which is invisible but use to update
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(SELECT);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(PRO_WorkOrderDetailTable.STATUS_FLD);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(PURCHASEORDERNO);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(PO_PurchaseOrderDetailTable.LINE_FLD);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(ITM_ProductTable.CODE_FLD);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(ITM_ProductTable.DESCRIPTION_FLD);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(ITM_ProductTable.REVISION_FLD);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(UM);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(PO_PurchaseOrderDetailTable.ORDERQUANTITY_FLD);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(VENDORCODE);
				dstData.Tables[PO_PurchaseOrderDetailTable.TABLE_NAME].Columns.Add(VENDORNAME);
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// ConfigGrid
		/// </summary>
		/// <param name="pblnLock"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void ConfigGrid(bool pblnLock)
		{
			const string METHOD_NAME = THIS + ".ConfigGrid()";
			try
			{
				dgrdData.Enabled = true;
				for (int i =0; i <dgrdData.Splits[0].DisplayColumns.Count; i++)
				{
					dgrdData.Splits[0].DisplayColumns[i].Locked = true;
				}
				dgrdData.Splits[0].DisplayColumns[SELECT].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[SELECT].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[SELECT].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[PO_PurchaseOrderDetailTable.ORDERQUANTITY_FLD].DataColumn.NumberFormat = Constants.DECIMAL_NUMBERFORMAT;
				dgrdData.Splits[0].DisplayColumns[PO_PurchaseOrderDetailTable.ORDERQUANTITY_FLD].Style.HorizontalAlignment = AlignHorzEnum.Far;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// BindDataToGrid
		/// </summary>
		/// <author>Trada</author>
		/// <date>Monday, Nov 29 2005</date>
		private void BindDataToGrid()
		{
			const string METHOD_NAME = THIS + ".BindDataToGrid()";
			try
			{
				int intPurchaseOrderMasterID = 0;
				if (txtPONo.Text != string.Empty)
				{
					intPurchaseOrderMasterID = int.Parse(txtPONo.Tag.ToString());
				}
				else
					intPurchaseOrderMasterID = 0;
				DateTime dtmFromScheduleDate = new DateTime(1,1,1);
				DateTime dtmToScheduleDate = new DateTime(1,1,1);
				if (dtmFromScheduleDateTime.Value.ToString() != string.Empty)
				{
					dtmFromScheduleDate = (DateTime)dtmFromScheduleDateTime.Value;
				}
				else
					dtmFromScheduleDate = dtmSpecialDate;
				if (dtmToScheduleDateTime.Value.ToString() != string.Empty)
				{
					dtmToScheduleDate = (DateTime)dtmToScheduleDateTime.Value;
				}
				else
					dtmToScheduleDate = dtmSpecialDate;
				CloseOpenPurchaseOrderBO boCloseOpenPurchaseOrder = new CloseOpenPurchaseOrderBO();
				if (cboCloseOrOpen.SelectedIndex == 0)
				{
					blnPOClose = true;
					dstGridData = boCloseOpenPurchaseOrder.GetPurchaseOrderDetail(int.Parse(cboCCN.SelectedValue.ToString()), int.Parse(txtMasLoc.Tag.ToString()), intPurchaseOrderMasterID, false, dtmFromScheduleDate, dtmToScheduleDate);
					foreach (DataRow drow in dstGridData.Tables[0].Rows)
					{
						drow[PRO_WorkOrderDetailTable.STATUS_FLD] = lblOpen.Text;
					}
				}
				else
				{
					blnPOClose = false;
					dstGridData = boCloseOpenPurchaseOrder.GetPurchaseOrderDetail(int.Parse(cboCCN.SelectedValue.ToString()), int.Parse(txtMasLoc.Tag.ToString()), intPurchaseOrderMasterID, true, dtmFromScheduleDate, dtmToScheduleDate);
					foreach (DataRow drow in dstGridData.Tables[0].Rows)
					{
						drow[PRO_WorkOrderDetailTable.STATUS_FLD] = lblClose.Text;
					}
				}
				foreach (DataRow drow in dstGridData.Tables[0].Rows)
				{
					drow[SELECT] = false;
				}
				//Bind Data to grid
				dgrdData.DataSource = dstGridData.Tables[0];
				FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
				ConfigGrid(false);
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnSearch_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void btnSearch_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearch_Click()";
			try
			{
				if (ValidateData())
				{
					BindDataToGrid();
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// ValidateData
		/// </summary>
		/// <returns></returns>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private bool ValidateData()
		{
			const string METHOD_NAME = THIS + ".ValidateData()";
			try
			{
				if (FormControlComponents.CheckMandatory(cboCCN))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					cboCCN.Focus();
					cboCCN.Select();
					return false;
				}
				if (FormControlComponents.CheckMandatory(cboCloseOrOpen))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					cboCloseOrOpen.Focus();
					cboCloseOrOpen.Select();
					return false;
				}
				if (FormControlComponents.CheckMandatory(txtMasLoc))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					txtMasLoc.Focus();
					txtMasLoc.Select();
					return false;
				}
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
			return true;
		}
		/// <summary>
		/// txtMasLoc_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void txtMasLoc_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMasLoc_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnSearchMasLoc_Click(sender, e);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtPONo_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void txtPONo_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtPONo_KeyDown()";
			try
			{
				if (e.KeyCode == Keys.F4)
					btnSearchPONo_Click(sender, e);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// chkSelectAll_CheckedChanged
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void chkSelectAll_CheckedChanged(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".chkSelectAll_CheckedChanged()";
			try
			{
				
				if ((blnStateOfCheck)&&(dgrdData.RowCount != 0))
				{
					if (chkSelectAll.Checked)
					{
						foreach (DataRow drow in dstGridData.Tables[0].Rows)
						{
							if (drow.RowState != DataRowState.Deleted)
							{
								drow[SELECT] = true;
							}
						}
					}
					else
					{
						foreach (DataRow drow in dstGridData.Tables[0].Rows)
						{
							if (drow.RowState != DataRowState.Deleted)
							{
								drow[SELECT] = false;
							}
						}
					}
				}

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}
		/// <summary>
		/// chkSelectAll_Enter
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <Author>Trada</Author>
		/// <date>Friday, Nov 25 2005</date>
		private void chkSelectAll_Enter(object sender, System.EventArgs e)
		{
			blnStateOfCheck = true;
		}
		/// <summary>
		/// chkSelectAll_Leave
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void chkSelectAll_Leave(object sender, System.EventArgs e)
		{
			blnStateOfCheck = false;
		}
		/// <summary>
		/// dgrdData_AfterColEdit
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void dgrdData_AfterColEdit(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColEdit()";
			try
			{
				if (e.Column.DataColumn.DataField == SELECT)
				{
					for (int i =0; i <dgrdData.RowCount; i++)
					{
						if (dgrdData[i, SELECT].ToString().Trim() != true.ToString())
						{
							chkSelectAll.Checked = false;
							return;
						}
					}
					chkSelectAll.Checked = true;
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// CheckGridData
		/// </summary>
		/// <returns></returns>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private bool CheckGridData()
		{
			const string METHOD_NAME = THIS + ".CheckGridData()";
			try
			{
				int intNumRowSelected = 0;
				for (int i = 0; i < dgrdData.RowCount; i++)
				{
					if (dgrdData[i, SELECT].ToString() == false.ToString())
					{
						intNumRowSelected++;
					}
				}
				if (intNumRowSelected == dgrdData.RowCount)
				{
					return false;
				}
				else
					return true;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// StoreSelectedLines
		/// </summary>
		/// <author>Trada</author>
		/// <date>Monday, Nov 29 2005</date>
		private void StoreSelectedLines()
		{
			const string METHOD_NAME = THIS + ".StoreSelectedLines()";
			try
			{
				arrSelectedLines = new ArrayList();	
				for (int i = 0; i < dgrdData.RowCount; i++)
				{
					if (dgrdData[i, SELECT].ToString().Trim() == true.ToString())
					{
						int intPOLineID;
						intPOLineID = int.Parse(dgrdData[i, PO_PurchaseOrderDetailTable.PURCHASEORDERDETAILID_FLD].ToString());
						arrSelectedLines.Add(intPOLineID);
					}
				}
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnClosePO_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, Nov 25 2005</date>
		private void btnClosePO_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnClosePO_Click()";
			try
			{
				if (CheckGridData())
				{
					string[] strParam = new string[1];
					if (blnPOClose)
					{
						strParam[0] = lblClose.Text;
					}
					else
						strParam[0] = lblOpen.Text;
					DialogResult enumResult = PCSMessageBox.Show(ErrorCode.MESSAGE_CLOSE_OR_OPEN_POLINE, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, strParam);
					if(enumResult == DialogResult.Yes)
					{
						StoreSelectedLines();
						CloseOpenPurchaseOrderBO boCloseOpenPurchaseOrder = new CloseOpenPurchaseOrderBO();
						boCloseOpenPurchaseOrder.CloseOrOpenPOLines(blnPOClose, arrSelectedLines);
						if (PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA) == DialogResult.OK)
						{
							BindDataToGrid();
						}
					}
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
	}
}
